import request from '@/utils/request'

export function addCheck(data) {
  return request({
    url: '/check',
    method: 'post',
    data
  })
}

export function editCheck(data) {
  return request({
    url: '/check',
    method: 'put',
    data
  })
}

export function deleteCheck(check_id) {
  return request({
    url: `/check/${check_id}`,
    method: 'DELETE'
  })
}

export function getCheck() {
  return request({
    url: '/check',
    method: 'get'
  })
}

